const app = {
  namespaced: true,
  state: () => ({
    // 侧边栏展开收起
    sidebarCollapse: false,
  }),
  mutations: {
    setSidebarCollapse(state, payload) {
      state.sidebarCollapse = payload
    },
  },
  actions: {
    toggleSideCollapseAction({ state, commit }) {
      console.log('state.sidebarCollapse==', state.sidebarCollapse)

      commit('setSidebarCollapse', !state.sidebarCollapse)
    },
  },
}

export default app
